package com.zdw.gateway.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdw.gateway.entity.PermissionEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 卓德文
 * @since 2023-01-04
 */
public interface PermissionMapper extends BaseMapper<PermissionEntity> {

    /**
     * 根据ID查询用户权限
     *
     * @param id
     * @return
     */
    List<PermissionEntity> selectPermissionsByUserId(@Param("id") Integer id);
}
